package com.lightdz.tshirtdz.model;

import com.lightdz.tshirtdz.model.Enum.SortTypeEnum;
import org.modelmapper.internal.bytebuddy.TypeCache;

/**
 * @ Description：${description}
 * @ Author     ：zbl
 * @ Date       ：Created in 16:33 27/06/2018
 * @ Modified By：
 */
public class PageInfo {

    public PageInfo(int pageNo, int pageSize, SortTypeEnum sortType){
        this.PageNo=pageNo;
        this.PageSize=pageSize;

        this.SortType=sortType!=null ? sortType :SortTypeEnum.TimeDesc;
    }
    public PageInfo(){}
    /// <summary>
    /// 当前页数
    /// </summary>
    private int PageNo ;
    /// <summary>
    /// 每页条数
    /// </summary>
    private int PageSize ;

    /// <summary>
    /// 排序类型
    /// </summary>
    private SortTypeEnum SortType ;

    public int getPageNo() {
        return PageNo;
    }

    public void setPageNo(int pageNo) {
        PageNo = pageNo;
    }

    public int getPageSize() {
        return PageSize;
    }

    public void setPageSize(int pageSize) {
        PageSize = pageSize;
    }

    public SortTypeEnum getSortType() {
        return SortType;
    }

    public void setSortType(SortTypeEnum sortType) {
        SortType = sortType;
    }

}
